package com.xiaozhen.common.core.domain.device;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: zhenweisheng
 * @Date: 2020/8/5 10:50
 */
@Data
@TableName("device")
@ApiModel(description = "设备信息")
public class Device extends BaseEntity {

    @TableId
    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备图标")
    private String deviceIcon;

    @ApiModelProperty(value = "设备所属分类")
    private Long categoryId;

    @ApiModelProperty(value = "驱动的id")
    private Long driverId;

    @ApiModelProperty(value = "设备编号")
    private String deviceCode;

    @ApiModelProperty(value = "纬度")
    private Double lat;

    @ApiModelProperty(value = "经度")
    private Double lng;

    @ApiModelProperty(value = "设备状态")
    private String status;

    @TableLogic
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    @TableField(exist = false)
    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @TableField(exist = false)
    @ApiModelProperty(value = "驱动名称")
    private String driverName;

}
